# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=docker-py
pkgver=4.2.2
pkgrel=0
pkgdesc="Python library for the Docker Engine API"
url="https://github.com/dotcloud/docker-py"
arch="noarch"
license="Apache-2.0"
depends="dockerpy-creds py3-cparser py3-cryptography py3-ipaddress
	py3-packaging py3-parsing py3-requests py3-websocket-client"
makedepends="py3-flake8 py3-mock py3-setuptools py3-six python3-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/docker/docker-py/archive/$pkgver.tar.gz"

check() {
	python3 setup.py check
}

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="d81f5a6d1cc15dd6d65e65c9e4f24fcae172ce41c8244e13c99adaad8627c9f0eece923d66108951b5e9aaa134e668f317481684b3c2bd51802321d1c4adbab1  docker-py-4.2.2.tar.gz"
